/* AI生成按钮样式 */
.ai-generate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-generate:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.ai-generate:active {
    transform: translateY(0);
}

.ai-generate:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ai-generate .fa-magic {
    margin-right: 5px;
    animation: sparkle 2s infinite;
}

.ai-generate .fa-spinner {
    margin-right: 5px;
}

/* 魔法图标动画 */
@keyframes sparkle {
    0%, 100% { 
        transform: rotate(0deg) scale(1); 
        opacity: 1; 
    }
    25% { 
        transform: rotate(-10deg) scale(1.1); 
        opacity: 0.8; 
    }
    50% { 
        transform: rotate(10deg) scale(1.2); 
        opacity: 0.6; 
    }
    75% { 
        transform: rotate(-5deg) scale(1.1); 
        opacity: 0.8; 
    }
}

/* 生成成功的动画效果 */
.ai-generate.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-generate {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .ai-generate .fa {
        font-size: 12px;
    }
}

/* 工具提示样式 */
.ai-generate[data-toggle="tooltip"] {
    cursor: help;
}

/* 加载状态的脉冲效果 */
.ai-generate:disabled .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
